package com.wyl.template.enums;

/**
 * @Auther: wyl
 * @Date: 2021/6/22
 * @Description:
 */
public enum PermissionType {

    ROOT(0, "一级菜单"),
    CHILDREN(1, "二级菜单"),
    FUNCTION(2, "子菜单"),
            ;
    private Integer code;
    private String value;

    private PermissionType(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.value;
    }
}
